package com.example.service;

import com.alibaba.fastjson.JSONObject;
import com.example.mapper.CityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MockServiceImpl implements MockService {

    @Autowired
    private CityMapper cityMapper;

    @Override
    public String mock() {
        return JSONObject.toJSONString(cityMapper.selectCityById(1l));
    }
}
